<?php

namespace App\Console\Commands\Tasks;
use Illuminate\Console\Command;
use App\Http\Controllers\Admin\TaskController;  //引入任务计划

class DemandTask extends Command
{
    //命令名
    protected $signature = 'task:demandperday';

    //命令描述:统计派单厅数据(每日)
    protected $description = 'Statistic Demand Per Day';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        $task = new TaskController();
        //统计数据
        $task->StatisticDemandPerDay();

    }

}